<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>用户表单</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../layui/css/layui.css" media="all">
<script src="../../layui/layui.js" charset="utf-8"></script>
<script src="../../js/projectManagement/wholeProcess.js" charset="utf-8"></script>
<script src="../../js/Utils.js" charset="utf-8"></script>
<script src="../../js/pdfobject.js" charset="utf-8"></script>
</head>
<style>

</style>
<body>
	<div id="conditionsDiv">
		<form class="layui-form" id="conditionsForm">
			<div class="layui-form-item">
				&nbsp;&nbsp;&nbsp;&nbsp; <span>流程名称：</span>
				<div class="layui-inline">
					<input class="layui-input" placeholder="请输入业务名称" name="name" id="nameText" autocomplete="off">
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">项目名称：</label>
					<div class="layui-input-inline">
						<select id="project_name" lay-filter="project_nameTypeTextFilter" lay-search>
							<option value="">请选择项目名称</option>
						</select>
					</div>
				</div><div class="layui-inline">
					<label class="layui-form-label">平台名称：</label>
					<div class="layui-input-inline">
						<select id="platform_name" lay-filter="platformTypeTextFilter" lay-search>
							<option value="">请选择平台名称</option>
						</select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">流程类型：</label>
					<div class="layui-input-inline">
						<select id="projectTypeText" lay-filter="projectTypeTextFilter">
							<option value="">请选择流程类型</option>
						</select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">时间段</label>
					<div class="layui-input-inline">
						<input type="text" class="layui-input" id="timeText" placeholder=" - ">
					</div>
				</div>
			</div>
		</form>
	</div>

	<table class="layui-hide" id="sysuserTable" lay-filter="sysuserTable"></table>

	<table class="layui-hide" id="operationRecordTable" lay-filter="operationRecordTable"></table>

	<script type="text/html" id="toolbarSysuser">
		<div class="layui-btn-container">
			<button class="layui-btn layui-btn-sm" lay-event="getCheckData">获取选中行数据</button>
			<button class="layui-btn layui-btn-sm" lay-event="getCheckLength">获取选中数目</button>
			<button class="layui-btn layui-btn-sm" lay-event="isAll">验证是否全选</button>
		</div>
	</script>

	<!-- 需要弹出的添加项目表单 -->
	<div class="layui-row" id="userAdd" style="display: none">
		<div class="layui-col-md10">
			<form class="layui-form" id="addEmployeeForm">
				<div class="layui-form-item" style="margin-top: 15px">
					<label class="layui-form-label">项目名称：</label>
					<div class="layui-input-block">
						<input type="text" id="project_name" class="layui-input">
					</div>
				</div>
				<label class="layui-form-label">项目类型：</label>
				<div class="layui-input-inline">
					<select id="projectTypeSelect" lay-filter="projectTypeFilter">
						<option value="">请选择项目类型</option>
					</select>
				</div>
			</form>
		</div>
	</div>

	<!--审批界面 -->
	<div class="layui-row" id="approvalPopup" style="display: none">
		<div class="layui-col-md10">
			<form class="layui-form" id="approvalForm">
				<div class="layui-form-item" style="margin-top: 15px">
					<label class="layui-form-label">当前节点：</label>
					<div class="layui-input-inline">
						<input type="text" id="currentNode" class="layui-input" readOnly>
					</div>
				</div>
				<div class="layui-form-item" style="margin-top: 15px">
					<label class="layui-form-label">接收人：</label>
					<div class="layui-input-inline">
						<select id="departmentSelect" lay-filter="departmentFilter">
							<option value="">请选择部门</option>
						</select>
					</div>
					<div class="layui-input-inline">
						<select id="departmentStaffSelect">
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">审批意见：</label>
					<div class="layui-input-block">
						<textarea type="text" id="approvalOpinion" class="layui-textarea"></textarea>
					</div>
				</div>
			</form>
		</div>
	</div>
	
	 <!-- 标定数据文件上传流程弹窗 -->
	    <div  id="calibrationDataAdd" style="display: none;">	
	        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 15px;">
			  <legend>程序和标定数据文件</legend>
			</fieldset>	
			<a type="button" class="layui-btn layui-btn-sm" href="javascript:downLoadProgramFilesToZip()" style="margin-left: 30px;"><i class="layui-icon">&#xe601;</i>全部下载为压缩包</a>	
			<table id ="globalFileTable" lay-filter = "globalFileTable" ></table>		
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 15px;">
			  <legend>流程详情</legend>
			</fieldset>		
			<ul class="layui-timeline" id="processInstanceHistroyRecordUl" style="margin-left: 15px;margin-right: 15px">
			</ul>					
	    </div>
	
	 <div id="taskAttachmentsTableDiv"  style="display: none;" >
        <a type="button" class="layui-btn layui-btn-sm" href="javascript:downLoadMutilFilesToZip()" style="margin-top: 15px;margin-left: 30px;">全部下载为压缩包</a>
	    <table id ="taskAttachmentsTable" lay-filter = "taskAttachmentsTable" ></table>
	</div>	
	
	<!-- 文档预览 -->
	<div id="pdf_preview"  style="text-align:center;height:600px">     
      </div> 
      
      <script type="text/html" id="barAttachments">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="show" style="margin-left: 15px;">查看</a>
		<a class="layui-btn layui-btn-xs" lay-event="downLoad" style="margin-left: 15px;">下载</a>
	</script>
	
	<script type="text/html" id="barGlobalFile">
        <a class="layui-btn layui-btn-xs" lay-event="downLoadGlobalFile" style="margin-left: 15px;">下载</a>
	</script>
</body>
</html>